export const getRouteList = () => {
  // 模拟异步请求
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve([
        {
          name: "home",
          path: "/home",
          component: "views/home/index.vue",
          meta: { title: "首页", icon: "home" },
        },
        {
          name: "system",
          path: "/system",
          meta: { title: "系统管理", icon: "platform" },
          children: [
            {
              name: "role",
              path: "/system/role",
              component: "views/system/role/index.vue",
              meta: { title: "角色管理" },
            },
            {
              name: "menu",
              path: "/system/menu",
              component: "views/system/menu/index.vue",
              meta: { title: "菜单管理" },
            },
            {
              name: "user",
              path: "/system/user",
              component: "views/system/user/index.vue",
              meta: { title: "用户管理" },
            },
          ],
        },
        {
          name: "menu",
          path: "/menu",
          meta: { title: "一级菜单", icon: "menu" },
          children: [
            {
              name: "menu2",
              path: "/menu/menu2",
              meta: { title: "二级菜单" },
              children: [
                {
                  name: "menu3",
                  path: "/menu/menu3",
                  component: "views/menu/mune3/index.vue",
                  meta: { title: "三级菜单" },
                },
              ],
            },
          ],
        },
      ])
    }, 0)
  })
}
